<template>
    <div>
        <j-modal
            :title="title"
            :width="width"
            :visible="visible"
            switchFullscreen
            @ok="handleOk"
            :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
            @cancel="handleCancel"
            cancelText="关闭">
            <a-form layout="inline">
                <a-row>
                     <a-col>
                         <a-form-item label="评分状态：">
                            <!-- <a-input placeholder="请选择主审专家"></a-input> -->
                            <a-select v-model="fs_zhuangtai1" placeholder="请选择评分状态" style="width:200px;">
                                <a-select-option value="1">提交</a-select-option>
                                <a-select-option value="0">未提交</a-select-option>
                            </a-select>
                        </a-form-item>
                     </a-col>
                </a-row>
            </a-form>
        </j-modal>
    </div>
</template>

<script>
import { getAction } from '@/api/manage';

import moment from 'moment'
export default {
    name: "cxjFsJsUpdateScoreStatus",
    props: ['flag','scoreId','fs_zhuangtai'],
    data(){
        return {
            visible: false,
            title:'修改评分状态',
            width: 800,
            disableSubmit: false,
            form: this.$form.createForm(this),
            labelCol: {
                xs: { span: 24 },
                sm: { span: 5 },
            },
            wrapperCol: {
                xs: { span: 24 },
                sm: { span: 16 },
            },
            url: {
                list: "/cxj/cxjFsSj/cxjfs_dbsjlist"
            },
            dataSource: [],
            fs_zhuangtai1: ''
        }
    },
    watch: {
        flag(next, prev) {
            if (next != prev) {
                var self = this;
                self.visible = !self.visible;
                self.fs_zhuangtai1 = self.fs_zhuangtai;
            }
        }
    },
    methods: {
        handleCancel(){
            this.visible = false;
        },
        handleOk(){
            console.log(this.fs_zhuangtai==1?'提交':'未提交')
            this.$emit('updateScore', {
                fsZhuangtai: this.fs_zhuangtai1,
                id: this.scoreId
            })
        },
    }
}
</script>

<style scoped>

</style>